import request from '../utils/request'

export const apiGetList = (data) => {
    return request({
        url: '/api/getList',
        method: 'post',
        data
    })
}

export const apiDel = (data) => {
    return request({
        url: `/api/del/${data.id}`,
        method: "DELETE",
    })
}

export const apiAddList = (data) => {
    return request({
        url: '/api/addList',
        method:"PUT",
        data
    })
}

export const apiEdit = (data) => {
    return request({
        url: '/api/edit',
        method: 'post',
        data
    })
}